import { $get, $put } from '@js/request'

export interface CaseSimpleSchema {
  id: string
  caseno_desc: string
}

// 获取案号列表
export async function getCaseSimpleList (): Promise<CaseSimpleSchema[]> {
  const res = await $get('/api/commission/case/list_simple')
  return res.data
}

// 复制案件请求
export async function copyRequest (d: { [k: string]: any}): Promise<void> {
  const res = await $put('/api/commission/case/copy_info', d)
  return res.data
}
